#!/usr/bin/node

const log =console.log,
      argv=process.argv[2];
log(process.argv.length);

for(var i=0;i<process.argv.length;i++){
  log(`${i}:argv-${process.argv[i]}`);
}

//if(process.argv.length===2||process.argv[2]=="--help"||process.argv[2]=="-h"){
  //log("usage:cmd-name[OPTION] [expression nevaluate the expression.nnMandatory arguments to long options are mandatory for short options too.n-h,--help output help information and exit]") }else{
   // log(process.argv[2]+"="+eval(process.argv[2]));
 // }


try{

    log(`${argv}=${eval(argv)}`);
}catch(e){
    log(`${argv}"是非法表达式"`);

}
 
